import fs from "node:fs/promises";
import path from "node:path";
import config from "../config/config.js";

let logFilePath = path.join(process.cwd(), config.logPath);

const timer = "0 50 23 * * *";
async function fn() {
  await fs.rm(logFilePath);
  console.log("日志文件已清空");
}

export default { timer, fn };
